package com.kfm.wiki.service;

import com.github.pagehelper.PageInfo;
import com.kfm.wiki.entity.Ebook;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kfm.wiki.entity.EbookDTO;

/**
* @author 10854
* @description 针对表【ebook(电子书)】的数据库操作Service
* @createDate 2022-12-12 10:03:21
*/
public interface EbookService extends IService<Ebook> {

    /**
     * 获取 电子书 分页数据
     * @param current
     * @param pageSize
     * @return
     */
    PageInfo<Ebook> list(Integer current, Integer pageSize,Ebook ebook);

    PageInfo<EbookDTO> listWithCategory(Integer current, Integer pageSize, Ebook ebook);

    @Override
    boolean save(Ebook ebook);

    int updateEbookInfo();
}
